home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 58606 / 58606.xpi / chrome / translator.jar / content / translatorOverlay.xul < prev    next >
Extensible Markup Language  |  2010-02-06  |  4KB  |  85 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE overlay SYSTEM "chrome://translator/locale/translator.dtd">
  4.  
  5. <?xml-stylesheet href="chrome://translator/skin/translator.css" type="text/css"?>
  6.  
  7. <overlay id="translator" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  8.     <script type="application/x-javascript" src="chrome://translator/content/jquery-1.3.2.js" />
  9.     <script type="application/x-javascript" src="chrome://translator/content/jquery.boolean.js" />
  10.     <script type="application/x-javascript" src="chrome://translator/content/translatorLoader.js" />
  11.     <script type="application/x-javascript" src="chrome://translator/content/translator.js" />
  12.     <script type="application/x-javascript" src="chrome://translator/content/translatorUI.js" />
  13.     <script type="application/x-javascript" src="chrome://translator/content/prefsManager.js" />
  14.     <script type="application/x-javascript" src="chrome://translator/content/languages.js" />
  15.     <script type="application/x-javascript" src="chrome://translator/content/page.js" />
  16.     <script type="application/x-javascript" src="chrome://translator/content/popup.js" />
  17.     <script type="application/x-javascript" src="chrome://translator/content/floatingPanel.js" />
  18.     
  19.   <!-- String Bundles -->
  20.   <stringbundleset id="stringbundleset">
  21.       <stringbundle id="translator-properties" src="chrome://translator/locale/translator.properties" />
  22.   </stringbundleset>
  23.   <!-- End String Bundles -->
  24.   
  25.   <!-- Keyboard Shortcuts -->
  26.     <keyset>
  27.         <key id="translator-translate-key" modifiers="control alt" key="T" oncommand="return true;" /><!-- return true on command so listeners set in js will be fired -->
  28.   </keyset>
  29.   <!-- End Keyboard Shortcuts -->
  30.   
  31.   <!-- Context Menu Popup -->
  32.   <popupset>
  33.         <menupopup id="translator-context-menu">
  34.             <menuitem id="translator-context-menuitem-preferences" label="&menu.preferences;" /> 
  35.             <menuseparator />
  36.             <menu id="translator-context-options" label="&menu.options;">
  37.                 <menupopup id="translator-context-options-menu">
  38.                     <menuitem id="translator-context-menuitem-options-context" label="&menu.options.context;" type="checkbox" />
  39.                     <menuitem id="translator-context-menuitem-options-toolbar" label="&menu.options.toolbar;" type="checkbox" />
  40.                     <menuitem id="translator-context-menuitem-options-statusbar" label="&menu.options.statusbar;" type="checkbox" />
  41.                 </menupopup>
  42.             </menu>
  43.             <menu id="translator-context-languages" label="&menu.languages;">
  44.                 <menupopup id="translator-context-languages-menu" />
  45.             </menu>
  46.             <menuseparator />
  47.             <menuitem id="translator-context-menuitem-translate" label="&menu.translate;" />
  48.             <menuseparator />
  49.             <menuitem id="translator-context-menuitem-enable" label="&menu.enable;" hidden="true" />
  50.             <menuitem id="translator-context-menuitem-disable" label="&menu.disable;" hidden="false" />
  51.         </menupopup>
  52.         
  53.         <menuitem id="translator-menuitem-placeholder" placeholder="true" hidden="true" />
  54.   </popupset>
  55.   <!-- End Context Menu Popup -->
  56.   
  57.   <!-- Content Area Context Menu -->
  58.   <popup id="contentAreaContextMenu">
  59.       <menu id="translator-content-area-menu" label="&menu.contentarea.header;" hidden="true">
  60.           <menupopup id="translator-content-area-menupopup" />
  61.       </menu>
  62.   </popup>
  63.   <!-- End Content Area Context Menu -->
  64.     
  65.   <!-- Toolbar -->
  66.   <toolbarpalette id="BrowserToolbarPalette">
  67.       <toolbaritem id="translator-toolbarbutton-container" align="center">
  68.           <toolbarbutton id="translator-toolbarbutton" label="&title;" type="menu-button" tooltiptext="&title;" disabled="false" hidden="true">
  69.               <menupopup id="translator-toolbarbutton-menu" />
  70.           </toolbarbutton>
  71.       </toolbaritem>
  72.   </toolbarpalette>
  73.   <!-- End Toolbar -->
  74.     
  75.   <!-- Status bar -->
  76.     <statusbar id="status-bar">
  77.         <statusbarpanel id="translator-status-bar" context="translator-context-menu" tooltiptext="&title;" hidden="false">
  78.             <image id="translator-status-icon" />
  79.             <label id="translator-status-label" value="" />
  80.         </statusbarpanel>
  81.     </statusbar>
  82.   <!-- End Status bar -->
  83. </overlay>
  84.  
  85.